package org.jackysoft.struts2.lawContract;
import java.util.Collection;

import javax.annotation.Resource;

import org.apache.struts2.convention.annotation.Namespace;
import org.jackysoft.entity.LawContract;
import org.jackysoft.service.LawContractService;
import org.jackysoft.service.OfficeDataRegionService;
import org.jackysoft.struts2.ServletAction;
import org.springframework.beans.factory.config.BeanDefinition;
import org.springframework.context.annotation.Scope;

@Namespace("/lawcontract")
@Scope(BeanDefinition.SCOPE_PROTOTYPE)
public class LawContractAction extends ServletAction<LawContract> {
	/**
	 * 
	 */
	private static final long serialVersionUID = -3183126677425200440L;
	private LawContractService service;
	private OfficeDataRegionService dataService;
	private LawContract bean;
	private Collection<LawContract> beans;	
		
	
	public void setBean(LawContract bean){
	     this.bean = bean;
	}
	public LawContract getBean(){
	     return this.bean;
	}
	public void setBeans(Collection<LawContract> beans){
	
	     this.beans = beans;
	}
	public Collection<LawContract> getBeans(){
	     return this.beans;
	}
	
	@Resource
	public void setService(LawContractService service) {
		this.service = service;
		this.setDataProvider(service);
	
	}	
	
	public LawContractService getService(){
	   return this.service;
	}

	@Resource
	public void setDataService(OfficeDataRegionService dataService) {
		this.dataService = dataService;
	}

	
		
}